
.container {
    .query-rule-builder {
        .query-rule-builder-head {
            display: flex;
            flex-direction: row;
            .query-rule-builder-operator {
                flex: 0 0 auto;
            }
            .query-rule-builder-buttons {
                flex: 1 0 auto;
                text-align: right;
            }
        }
        .query-rule-builder-body {
            margin: 15px 20px 0 40px;
            .query-rule-container {
                position: relative;
                margin: 4px 0;
                height: 38px;
                border-radius: 4px;
                background-color: rgba(0, 0, 0, .06);
                display: flex;
                flex-direction: row;
                .query-rule-field,
                .query-rule-operator,
                .query-rule-value,
                .query-rule-remove {
                    padding: 5px 8px;
                }
                .query-rule-field {
                    flex: 0 0 190px;
                    width: 192px;
                }
                .query-rule-operator {
                    flex: 0 0 120px;
                    width: 120px;
                }
                .query-rule-value {
                    flex: 0 0 230px;
                    width: 230px;
                }
                .query-rule-remove {
                    flex: 1 1 auto;
                    width: auto;
                    text-align: right;
                }
                &:before,
                &:after {
                    content: "";
                    position: absolute;
                    left: -15px;
                    width: 15px;
                    height: calc(50% + 4px);
                    border-color: #108ee9;
                    border-style: solid;
                }
                &:before {
                    top: -4px;
                    border-width: 0 0 1px 1px;
                }
                &:after {
                    top: 50%;
                    border-width: 0 0 0 1px;
                }
                &:first-child {
                    &:before {
                        top: -15px;
                        height: calc(50% + 15px);
                    }
                }
                &:last-child {
                    &:before {
                        border-radius: 0 0 0 4px;
                    }
                    &:after {
                        content: none;
                    }
                }
            }
        }
    }
}


.customize-footer {
    border-top: 1px solid #e9e9e9;
    padding: 10px 18px 0 10px;
    text-align: right;
    border-radius: 0 0 0px 0px;
    margin: 15px -16px -5px -16px;
}